﻿namespace Manhua2.SQLiteTable
{
    using Manhua2.Common;
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;

    [SQLite.Table("histories")]
    public class SQLiteHistory : BindableBase
    {
        private int _id;

        [SQLite.AutoIncrement]
        [SQLite.PrimaryKey]
        [SQLite.Column("id")]
        public int Id { get { return this._id; } set { this.SetProperty(ref this._id, value); } }

        private int _chapterId;
        
        [SQLite.Column("chapter_id")]
        [SQLite.Indexed]
        public int ChapterId { get { return this._chapterId; } set { this.SetProperty(ref this._chapterId, value); } }

        private int _page;

        [SQLite.Column("page")]
        public int Page { get { return this._page; } set { this.SetProperty(ref this._page, value); } }

        private DateTime _lastView;

        [SQLite.Column("last_view")]
        [SQLite.Indexed]
        public DateTime LastView { get { return this._lastView; } set { this.SetProperty(ref this._lastView, value); } }
    }
}
